give the devil his due
verb
°To acknowledge the positive qualities of a person who is unpleasant or disliked.